package kr.pe.osdev.domain;

import kr.pe.osdev.annotation.PrintToString;

public class Item extends BaseObject {

    private static final long serialVersionUID = -1392955342073521263L;
    
    @PrintToString
    private String sid;
    @PrintToString
    private String content;
    @PrintToString
    private int seq;
    @PrintToString
    private String answerYn;
    @PrintToString
    private String displayCode;
    @PrintToString
    private String questionSid;
    @PrintToString
    private String useYn;
    
    public Item() {
    }
    
    public Item(String content) {
        this.content = content;
    }
    
    @Override
    public void setAsText(String text) throws IllegalArgumentException {
        setValue(new Item(text));
    }
    
    public String getSid() {
        return sid;
    }
    public void setSid(String sid) {
        this.sid = sid;
    }
    public String getContent() {
        return content;
    }
    public void setContent(String content) {
        this.content = content;
    }
    public int getSeq() {
        return seq;
    }
    public void setSeq(int seq) {
        this.seq = seq;
    }
    public String getAnswerYn() {
        return answerYn;
    }
    public void setAnswerYn(String answerYn) {
        this.answerYn = answerYn;
    }    
    public String getDisplayCode() {
        return displayCode;
    }
    public void setDisplayCode(String displayCode) {
        this.displayCode = displayCode;
    }
    public String getQuestionSid() {
        return questionSid;
    }
    public void setQuestionSid(String questionSid) {
        this.questionSid = questionSid;
    }
    public String getUseYn() {
        return useYn;
    }
    public void setUseYn(String useYn) {
        this.useYn = useYn;
    }    
}
